import { request } from "./request.js";


function GET({ url, param }) {
    return request({
        url,
        method: "get",
        param
    });
}

function POST({ url, param, data, ...config }) {
    return request({
        url,
        method: "post",
        param,
        data,
        ...config
    });
}

function DELETE({ url, param, ...config }) {
    return request({
        url,
        method: "delete",
        param,
        ...config
    });
}

function PUT({ url, param, data, ...config }) {
    return request({
        url,
        method: "put",
        param,
        data,
        ...config
    });
}


export {
    GET,
    POST,
    DELETE,
    PUT
}